package org.example.memora.common.utils;

public class ChatContext {
    private static final ThreadLocal<String> tl = new ThreadLocal<>();

    public static void setCurrentUserId(String userId) {
        tl.set(userId);
    }

    public static String getCurrentUserId() {
        return tl.get();
    }

    public static void clear() {
        tl.remove();
    }
}

